﻿<Page
    x:Class="WPClient.View.ParliamentarianPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WPClient.View"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:view="using:WPClient.View"
    mc:Ignorable="d"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Page.Transitions>
        <TransitionCollection>
            <NavigationThemeTransition>
                <NavigationThemeTransition.DefaultNavigationTransitionInfo>
                    <CommonNavigationTransitionInfo IsStaggeringEnabled="True"/>
                </NavigationThemeTransition.DefaultNavigationTransitionInfo>
            </NavigationThemeTransition>
        </TransitionCollection>
    </Page.Transitions>

    <Grid>
        <Pivot
            ItemsSource="{Binding InfoCategories}"
            Title="{Binding CompleteName}"
            CommonNavigationTransitionInfo.IsStaggerElement="True">
            <Pivot.ItemTemplate>
                <DataTemplate>
                    <view:InfoCategoryControl />
                </DataTemplate>
            </Pivot.ItemTemplate>
        </Pivot>
    </Grid>

    <Page.BottomAppBar>
        <CommandBar>
            <AppBarButton Label="piace" Icon="Accept" />
            <AppBarButton Label="info" Icon="Add" />
            <AppBarButton Label="non piace" Icon="Cancel" />
        </CommandBar>
    </Page.BottomAppBar>
</Page>
